package com.example.demo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Finance;
import org.apache.ibatis.annotations.*;
import java.util.List;

public interface FinanceMapper extends BaseMapper<Finance> {
    // 根据月份查询工资
    @Select("SELECT number, id, payrollmonth,name,departmentid,department,salary,fine,realsalary FROM finance WHERE payrollmonth = #{payrollmonth}")
    Finance findBypayrollmonth(String payrollmonth);
}